package fr.nantes.univ.EntityBeans;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.Id;

@SuppressWarnings("serial")
@Entity
public class User implements Serializable {
	
	@Id
	private String id;
	
	private String email;
	
	private String nickName;
	
	private String name;
	
	private String firstName;
	
//	@OneToMany(mappedBy = "user", cascade = CascadeType.ALL)
//	private List<Address> addresses;
	
	public User() {
//		addresses = new ArrayList<Address>();
	}
	
	public String getId() {
		return this.id;
	}
	
	public String getEmail() {
		return this.email;
	}
	
	public String getNickName() {
		return this.nickName;
	}
	
	public String getName() {
		return this.name;
	}
	
	public String getFirstName() {
		return this.firstName;
	}
	
//	@OneToMany
//	public List<Address> getAddresses() {
//		return this.addresses;
//	}
	
	public void setId(String _id) {
		this.id = _id;
	}
	
	public void setEmail(String _email) {
		this.email = _email;
	}
	
	public void setNickName(String _nickName) {
		this.nickName = _nickName;
	}
	
	public void setName(String _name) {
		this.name = _name;
	}
	
	public void setFirstName(String _firstName) {
		this.firstName = _firstName;
	}
	
//	public void addAddress(Address address) {
//		this.addresses.add(address);
//	}
//	
//	public void removeAdress(Address address) {
//		this.addresses.remove(address);
//	}

}
